package br.com.center.loja.mb.utils;

import java.lang.reflect.ParameterizedType;

public class ReflectionTeste {
	
	static class A{
		
	}
	
	static class B<T>{
		
	}
	
	static class C extends B<A>{
		
	}
	
	
	public static void main(String[] args) {
		A a = new A();
		B b = new B();
		C c = new C();
		
		System.out.println(a.getClass().getGenericSuperclass());
		System.out.println(b.getClass().getGenericSuperclass());
		System.out.println(((ParameterizedType)c.getClass().getGenericSuperclass()).getActualTypeArguments()[0]);
	}

}
